<template>
  <div class="layout">

    <RouterView v-slot="{ Component, route }">
      <KeepAlive>
        <component :is="Component" :key="route.name" v-if="route.meta.keepAlive" />
      </KeepAlive>
      <component :is="Component" :key="route.name" v-if="!route.meta.keepAlive" />
    </RouterView>

    <tabbar></tabbar>
  </div>
</template>
  
<script setup lang="ts">
import includeName from '@/router/path'
import { RouterLink, RouterView } from 'vue-router'

</script>
  
<style></style>